<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeBehind="contentedit.aspx.cs" Inherits="JTC.MiniCommerce.Web.admin.contentedit" Title="Untitled Page" ValidateRequest="false"%>
<%@ MasterType VirtualPath="~/admin/admin.master" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="mainContentRegion">
  <div id="admin_centercontent">
    <div class="sectionHeader"><asp:Label ID="lblContentManagement" runat="server" /></div><br />
    <table id="pageTable">
      <tr>
        <td valign="top">
          <asp:Panel ID="pnlCurrentPages" runat="server">
            <asp:TreeView ID="tvPages" runat="server" DataSourceID="xmlDataSource" ShowLines="true" OnSelectedNodeChanged="Page_Selected" ExpandDepth="FullyExpand">
              <DataBindings>
                <asp:TreeNodeBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TextField="Text" ValueField="Value" ToolTipField="ToolTip" />
              </DataBindings>
            </asp:TreeView>
            <asp:XmlDataSource ID="xmlDataSource" TransformFile="~/transforms/pageMenu.xslt" XPath="MenuItems/MenuItem" runat="server" />
          </asp:Panel>        
        </td>
        <td valign="top">
          <asp:Panel ID="pnlEditPage" runat="server">
            <asp:Label ID="lblPageId" runat="server" Visible="false" />
            <asp:Label ID="lblParentPage" runat="server" CssClass="label" /><br />
            <asp:DropDownList ID="ddlParentPage" runat="server" CssClass="fwdropdownlist" />&nbsp;<asp:HyperLink ID="hlParentPageHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image1" runat="server" SkinID="help" /></asp:HyperLink><br /><br />
            <asp:Label ID="lblTitle" runat="server" CssClass="label" /><br />
            <asp:TextBox ID="txtTitle" runat="server" CssClass="longtextbox" />&nbsp;<asp:HyperLink ID="hlTitleHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image2" runat="server" SkinID="help" /></asp:HyperLink><br /><br />
            <asp:Label ID="lblMenuTitle" runat="server" CssClass="label" /><br />
            <asp:TextBox ID="txtMenuTitle" runat="server" CssClass="textbox" />&nbsp;<asp:HyperLink ID="hlMenuTitleHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image3" runat="server" SkinID="help" /></asp:HyperLink><br /><br />
            <div class="verticalalign">
              <asp:Label ID="lblKeywords" runat="server" CssClass="label" />&nbsp;<asp:HyperLink ID="hlKeywordsHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image4" runat="server" SkinID="help" /></asp:HyperLink><br />
            </div>
            <asp:TextBox ID="txtKeywords" runat="server" CssClass="multilinetextbox" MaxLength="250" TextMode="MultiLine" /><br /><br />
            <div class="verticalalign">
              <asp:Label ID="lblDescription" runat="server" CssClass="label" />&nbsp;<asp:HyperLink ID="hlDescriptionHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image5" runat="server" SkinID="help" /></asp:HyperLink><br />
            </div>
            <asp:TextBox ID="txtDescription" runat="server" CssClass="multilinetextbox" MaxLength="250" TextMode="MultiLine" /><br /><br />
            <div class="verticalalign">
              <asp:Label ID="lblContent" runat="server" CssClass="label" />&nbsp;<asp:HyperLink ID="hlContentHelp" runat="server" NavigateUrl="javascript:void(0);"><asp:Image ID="Image6" runat="server" SkinID="help" /></asp:HyperLink><br />
            </div>
            <FCKeditorV2:FCKeditor ID="txtContent" BasePath="~/FCKeditor/" runat="server" Height="300"
             Width="100%" UseBROnCarriageReturn="true" ToolbarStartExpanded="false" /><br />
            <asp:Button ID="btnSave" runat="server" CssClass="button" OnClick="btnSave_Click"/>&nbsp;&nbsp;<asp:Button ID="btnReset" runat="server" CssClass="button" OnClick="btnReset_Click" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnDelete" runat="server" CssClass="button" Visible="false" OnClick="btnDelete_Click" />
          </asp:Panel>        
        </td>
      </tr>    
    </table>
  </div>
</div>
</asp:Content>
